package com.wang.exam.mapper;

import com.wang.exam.pojo.MajorCourse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface MajorCoursesMapper {
    //查询专业考试
    List<MajorCourse> getMajorCourses(@Param("page")Integer page, @Param("rows")Integer rows);
    //批量删除
    int deleteMajorCourses(String[] ids);
    //单独删除
    int deleteMajorCourse(Map<String,Object> map);
    //添加
    int addMajorCourse(Map<String,Object> map);
    //修改
    int upMajorCourses(Map<String,Object> map);
    //搜索
    int searchMajorCourse(Map<String,Object> map);
    int getCount();
}
